import {
	http,
	uploadFile,
} from "@/utils/http";
import {Paging} from "@/utils/paging";
export default {
	// 获取首页参数
	async getIndexInfo(){
		return http.get('/content/getIndex', {}, false);
	},
	
	// 获取文章列表
	async getArticleList(param){
		return http.get('/content/getArticleList', param, false);
	},
	
	// 获取分类详情
	async getArticleCateInfo(id){
		return http.get('/content/getArticleCate', {id}, false)
	},
	
	// 获取文章详情
	async getArticleInfo(id){
		return http.get('/content/getArticle', {id}, false);
	},
	
	// 获取奖励页轮播
	async getRewardBanner(type){
		return http.get('/content/getDesignList', {type}, false);
	},
	
	// 发起支付
	async pay(param){
		return http.post('/content/sendPay',param);
	},
	
	// 获取表单token
	async getFromToken(param = ''){
		return http.get('/content/goFromToken'+uni.$u.queryParams(param));
	},
	
	// 获取城市列表
	async getCityList(param = ''){
		return http.get('/content/getCityList'+uni.$u.queryParams(param));
	},
	
	// 获取IP地址
	async getIpLocation(){
		return http.get('/content/getIpLocation');
	},
	
}